package test_JiSuanQi;

public class DiviOper implements ICompute{

    public int compute(int num1, int num2)
    {
//        if(num2 == 0)
//        {
//            throw new RuntimeException("除数不能为0");
//        }
        try{
        return num1 / num2;
        } catch (Exception e)
        {
            e.printStackTrace();
        }
        return -1;
    }
}
